package com.zhangxu.microservice.system.biz.convert;

import com.zhangxu.microservice.system.biz.dto.ResourceDTO;
import com.zhangxu.microservice.system.dao.entity.ResourceDO;
import org.mapstruct.Mapper;

/**
 * 资源对象转换接口
 */
@Mapper(componentModel = "spring")
public interface ResourceConverter {

    /**
     * ResourceDO 转 ResourceDTO
     *
     * @param resourceDO 资源DO
     * @return 资源DTO
     */
    ResourceDTO toResourceDTO(ResourceDO resourceDO);
}